package com.huiyun.project.im.api.client.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @FileName:
 * @Description:
 * @Author linjie
 * @Date 2020/7/228:03 PM
 * @Version 4.0.0
 */
@Data
@ApiModel("登陆请求")
@Accessors(chain = true)
public class LoginReq implements Serializable {
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank
    private String username;
    @ApiModelProperty(value = "密码 明文", required = true)
    @NotBlank
    private String password;
    @ApiModelProperty(value = "应用编码", required = true)
    @NotBlank
    private String appKey;
    @NotBlank
    @ApiModelProperty(value = "设备类型 1.mobile 2.tablet 3.normal(web)", required = true)
    private String deviceType;
    @NotBlank
    @ApiModelProperty(value = "设备平台 0.unknow 1.win(pc)  2.mac(pc)  3.android(m)  4.ios(m)", required = true)
    private String devicePlatform;
    @NotBlank
    @ApiModelProperty(value = "设备ID", required = true)
    private String deviceId;
}
